# -*- coding: utf-8 -*-
"""
@Project: Msptest
@Author: 余振新
@File name: 公共.py
@Create time: 2023/7/13 15:46
"""
from selenium.webdriver.common.by import By

# 确定按钮 = (By.XPATH, '//span[normalize-space()="确定"]')
下一步 = (By.XPATH, '//span[normalize-space()="下一步"]')

申请页面_保存 = (By.XPATH, '//span[normalize-space()="会议管理系统"]/../../../../../following-sibling::div/button[1]')

会议时间 = (By.XPATH, '//label[text()="会议时间"]/following-sibling::div/div/div/div/div/input')

活动时间 = (By.XPATH, '//label[text()="活动时间"]/following-sibling::div/div/div/div/div/input')

活动类型_商务用餐 = (By.XPATH, '//label[normalize-space()="商务用餐"]')

会议地点_省份 = (By.XPATH, '(//label[text()="会议地点"]/following-sibling::div/div/div/div)[1]')
活动地点_省份 = (By.XPATH, '(//label[text()="活动地点"]/following-sibling::div/div/div/div)[1]')
会议地点_省份_上海市 = (By.XPATH, '//li[text()="上海市"]')
会议地点_市 = (By.XPATH, '(//label[text()="会议地点"]/following-sibling::div/div/div/div)[2]')
活动地点_市 = (By.XPATH, '(//label[text()="活动地点"]/following-sibling::div/div/div/div)[2]')
会议地点_市_市辖区 = (By.XPATH, '//li[text()="市辖区"]')
会议地点_区 = (By.XPATH, '(//label[text()="会议地点"]/following-sibling::div/div/div/div)[3]')
活动地点_区 = (By.XPATH, '(//label[text()="活动地点"]/following-sibling::div/div/div/div)[3]')
会议地点_区_虹口区 = (By.XPATH, '//li[text()="虹口区"]')
会议地点_地址 = (By.XPATH, '(//label[text()="会议地点"]/following-sibling::div/div/div/div)[4]/div/input')
活动地点_地址 = (By.XPATH, '(//label[text()="活动地点"]/following-sibling::div/div/div/div)[4]/div/input')

会议名称 = (By.XPATH, '//label[text()="会议名称"]/following-sibling::div/div/div/input')

会议类型 = (By.XPATH, '//label[text()="会议类型"]/following-sibling::div/div/div[1]')
会议类型_区域性学术会议 = (By.XPATH, '//li[text()="区域性学术会议"]')

会议目的 = (By.XPATH, '//label[text()="会议目的"]/following-sibling::div/div/textarea')

承办单位 = (By.XPATH, '//label[text()="承办单位"]/following-sibling::div/div/div/input')

参会人数 = (By.XPATH, '//label[text()="参会人数"]/following-sibling::div/div/div/input')

品牌物料_常笑医学网单页 = (By.XPATH, '//span[normalize-space()="常笑医学网单页"]')

会议参与形式_茶歇 = (By.XPATH, '//span[normalize-space()="茶歇"]')
执行团队 = (By.XPATH, '//label[normalize-space()="执行团队"]/following-sibling::div/div/div/i')
执行团队_健康顾问组 = (By.XPATH, '//span[text()="健康顾问组"]/preceding-sibling::span')
执行团队_项目拓展部 = (By.XPATH, '//span[text()="项目拓展部"]/preceding-sibling::label/span')

服务平台及主题_添加按钮 = (By.XPATH, '(//strong[text()="服务品牌及主题"]/parent::span/parent::div/following-sibling::button)[1]')
服务平台及主题_第一个 = (By.XPATH, '//span[text()="亮克"]/../../preceding-sibling::td/div/label')
服务平台及主题_确认按钮 = (By.XPATH, '//div[text()="服务品牌及主题"]/../following-sibling::div[2]/div/button[2]')

会议目的_准入_添加按钮 = (By.XPATH, '//span[normalize-space()="准入"]/following-sibling::button')
会议目的_准入_确定按钮 = (By.XPATH, '//div[normalize-space()="添加准入"]/following-sibling::div[2]/div/button[2]')
会议目的_观念辅导_添加按钮 = (By.XPATH, '//span[normalize-space()="观念辅导"]/following-sibling::button')
会议目的_观念辅导_确定按钮 = (By.XPATH, '//div[normalize-space()="添加观念辅导"]/following-sibling::div[2]/div/button[2]')
会议目的_VIP维护_添加按钮 = (By.XPATH, '//span[normalize-space()="VIP维护"]/following-sibling::button')
会议目的_VIP维护_确定按钮 = (By.XPATH, '//div[normalize-space()="添加VIP维护"]/following-sibling::div[2]/div/button[2]')

活动费用 = (By.XPATH, '//strong[text()="活动费用"]')

服务品牌_选择 = (By.XPATH, '//div[@data-v-5b37e0a7=""]/label[text()="服务品牌"]/following-sibling::div/div/div/span')
服务品牌_输入框 = (By.XPATH, '//div[text()="选择服务品牌"]/../following-sibling::div[1]/div[1]/form/div/div/div/div/input')
服务品牌_搜索 = (By.XPATH, '//div[text()="选择服务品牌"]/../following-sibling::div/div/form/button')
服务品牌_选择_亮克 = (By.XPATH, '//div[text()="选择服务品牌"]/../following-sibling::div/div[3]/div/div/div[2]/table/tbody/tr')
服务品牌_确认按钮 = (By.XPATH, '//button[@data-v-791ce293=""]/span[text()="确定"]')

参会科室_一级科室 = (By.XPATH, '//span[text()="一级科室"]')
参会科室_一级科室_内科 = (By.XPATH, '//li[text()="内科"]')
参会科室_二级科室 = (By.XPATH, '//span[text()="二级科室"]')
参会科室_二级科室_血液科 = (By.XPATH, '//li[text()="血液科"]')

主要患者结构_疾病1 = (By.XPATH, '//label[normalize-space()="主要患者结构（列前三）"]/following-sibling::div/div/div[1]/div[1]/div/div/span')
主要患者结构_疾病2 = (By.XPATH, '//label[normalize-space()="主要患者结构（列前三）"]/following-sibling::div/div/div[2]/div[1]/div/div/span')
主要患者结构_疾病3 = (By.XPATH, '//label[normalize-space()="主要患者结构（列前三）"]/following-sibling::div/div/div[3]/div[1]/div/div/span')
主要患者结构_治疗方案1 = (By.XPATH, '//label[normalize-space()="主要患者结构（列前三）"]/following-sibling::div/div/div[1]/div[2]/div/textarea')
主要患者结构_治疗方案2 = (By.XPATH, '//label[normalize-space()="主要患者结构（列前三）"]/following-sibling::div/div/div[2]/div[2]/div/textarea')
主要患者结构_治疗方案3 = (By.XPATH, '//label[normalize-space()="主要患者结构（列前三）"]/following-sibling::div/div/div[3]/div[2]/div/textarea')
主要患者结构_选择疾病_第一个疾病 = (By.XPATH, '//div[normalize-space()="选择疾病"]/following-sibling::div[1]/div[3]/div/div/div[2]/table/tbody/tr[1]')
主要患者结构_选择疾病_确认按钮 = (By.XPATH, '//div[normalize-space()="选择疾病"]/following-sibling::div[2]/div/button[2]')

选择终端 = (By.XPATH, '//div[@data-v-5b37e0a7=""]/label[text()="选择终端"]/following-sibling::div/div/div/span')
关联终端 = (By.XPATH, '//label[normalize-space()="关联终端"]/following-sibling::div/div/div/span')
选择终端_第一个 = (By.XPATH, '//div[text()="选择终端"]/../following-sibling::div[1]/div[3]/div/div/div[2]/table/tbody/tr[1]')
选择终端_确定 = (By.XPATH, '//div[text()="选择终端"]/../following-sibling::div[2]/div/button[2]')

活动类型 = (By.XPATH, '//label[normalize-space()="活动类型"]/following-sibling::div/div/div/div')
活动类型_义诊活动 = (By.XPATH, '//li[normalize-space()="义诊活动"]')

选择客户 = (By.XPATH, '//div[@data-v-5b37e0a7=""]/label[text()="选择客户"]/following-sibling::div/div/div/span')
选择客户_第一个 = (By.XPATH, '//div[text()="选择客户"]/../following-sibling::div[1]/div[3]/div/div/div[2]/table/tbody/tr[1]')
选择客户_确定 = (By.XPATH, '//div[text()="选择客户"]/../following-sibling::div[2]/div/button[2]')

讲师信息_添加按钮 = (By.XPATH, '//strong[normalize-space()="讲师信息"]/../../following-sibling::button')
活动医生信息_添加按钮 = (By.XPATH, '//strong[normalize-space()="活动医生信息"]/../../following-sibling::button')
讲师信息_选择讲师 = (By.XPATH, '//label[normalize-space()="讲师"]/following-sibling::div/div/div/span')
讲师信息_选择讲师_第一个 = (By.XPATH, '//span[normalize-space()="是否资质认证"]/../../../../../../following-sibling::div[1]/table/tbody/tr[1]')
讲师信息_选择讲师_保存 = (By.XPATH, '//span[normalize-space()="是否资质认证"]/../../../../../../../../../../following-sibling::div/div/button[2]')
讲师信息_角色_第一个 = (By.XPATH, '//span[normalize-space()="角色"]/following-sibling::label/span[1]')
讲师信息_保存按钮 = (By.XPATH, '(//div[normalize-space()="添加讲师"])[1]/following-sibling::div[2]/div/button[2]')

附件信息_上传按钮 = (By.XPATH, '//strong[text()="附件信息"]/../../following-sibling::div[1]/div/button')
断言_附件信息_上传成功 = (By.XPATH, '//span[normalize-space()="上传成功"]')

参会人_添加按钮 = (By.XPATH, '//strong[normalize-space()="参会人"]/../../following-sibling::div[1]/button')
参会人_第一个 = (By.XPATH, '//div[normalize-space()="选择参会人"]/following-sibling::div[1]/div[2]/div/div/div[2]/table/tbody/tr[1]/td[1]/div/label')
参会人_确认按钮 = (By.XPATH, '//div[normalize-space()="选择参会人"]/../../div[3]/div/button[2]')

参会人页_保存按钮 = (By.XPATH, '//strong[normalize-space()="参会人"]/../../../../following-sibling::div/button[2]')

断言_会议申请_下一步_保存成功 = (By.XPATH, '//span[normalize-space()="保存成功!"]')
断言_会议申请_成功_保存成功 = (By.XPATH, '//div[normalize-space()="保存成功"]')
断言_会议申请_成功_保存成功_感叹号 = (By.XPATH, '//span[normalize-space()="保存成功!"]')

基本信息_会议目的_准入 = (By.XPATH, '//label[normalize-space()="准入"]')
